package com.xulu.romance.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author xiaoxulu
 * @version V1.0
 * @Package com.xulu.romance.pojo
 * @date 2025/6/3 16:40
 */
@Data
@Table(name = "emp")
public class Emp implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String name;
    private String username;
    private String phone;
    private String gender;
    private String job;
    private String dept;
    private String image;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime entryDate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private BigDecimal salary;



}
